﻿/*****************************************************************//**
 * @file    FITKViewAdaptorBeamOrientationPreview.h
 * @brief   Adaptor for previewing beam orientation.
 *  
 * @author  ChengHaotian (yeguangbaozi@foxmail.com)
 * @date    2024-07-09
 *********************************************************************/

#ifndef __FITKVIEWADAPTORBEAMORIENTATIONPREVIEW_H__
#define __FITKVIEWADAPTORBEAMORIENTATIONPREVIEW_H__

#include "FITKVTKViewAdaptorBase.h"

#include "FITKVTKGraphAdaptorAPI.h"

namespace Exchange
{
    /**
     * @brief   Graph object data adaptor for previewing beam orientation.
     * @author  ChengHaotian (yeguangbaozi@foxmail.com)
     * @date    2024-07-09
     */
    class FITKVTKGRAPHADAPTORAPI FITKViewAdaptorBeamOrientationPreview : public FITKVTKViewAdaptorBase
    {
        // Regist
        FITKCLASS(Exchange, FITKViewAdaptorBeamOrientationPreview);

    public:
        /**
         * @brief   Constructor.
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-07-09
         */
        explicit FITKViewAdaptorBeamOrientationPreview() = default;

        /**
         * @brief   Destructor.
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-07-09
         */
        ~FITKViewAdaptorBeamOrientationPreview() = default;

        /**
         * @brief   Execute the data exchange.[override]
         * @return  Is OK
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-07-09
         */
        bool update() override;

    };

    // Regist beam orientation adaptor
    Register2FITKViewAdaptorFactory(BeamOrient_Preview, Interface::FITKAbaBeamOrientation, FITKViewAdaptorBeamOrientationPreview);
}   // namespace Exchange

#endif // __FITKVIEWADAPTORBEAMORIENTATIONPREVIEW_H__
